<?php
	class Template {	
		static protected $cache;
		
		public function __construct() {
			self::getInstance();
		}
		
		static function getInstance() {
			if( is_null(self::$tpl) ) {
				self::$cache = CacheDriver::factory("TYPE_MEMCACHE");
				if(self::$cache == null) {
					_error("cache system getinstance failed", 'fatal');
				}
			}
			return self::$tpl;
		}
		
		public function set() { 
			
		}
		
		public function get() {
			
		}
	}